package com.frame.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 零售表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Retail {
    /**
     * 零售表id
     */
    @ExcelProperty(value = "零售id")
    private String shopId;
    /**
     * 省
     */
    @ExcelProperty(value = "省")
    private Integer aid;
    /**
     * 市
     */
    @ExcelProperty(value = "市")
    private Integer bid;
    /**
     * 区
     */
    @ExcelProperty(value = "区")
    private Integer cid;
    /**
     * 产品价格
     */
    @ExcelProperty(value = "产品价格")
    private BigDecimal price;
    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private  Integer num;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GTM-8")
    @ExcelIgnore
    private Date createTime;
    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String productName;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 保质期
     */
    @ExcelIgnore
    private Integer shelfLife;
    /**
     * 删除主键
     */
    @ExcelIgnore
    private Integer deleteId;
    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;
    /**
    /**
     * 图片
     */
    @ExcelIgnore
    private String avatar;
    /**
     * 城市
     */
    private String city;
    /**
     * 天气
     */
    private String weather;
    /**
     * 温度
     */
    private String temperature;
    /**
     * 湿度
     */
    private  String humidness;
    /**
     * 风向
     */
    private String windDirection;
    /**
     * 风力
     */
    private  String windForce;
    /**
     * 空气质量
     */
    private  String airQuality;
    private Integer status;
    @ExcelIgnore
    private String yphone;
    //省
    @ExcelIgnore
    private String provinceName;

    //市
    @ExcelIgnore
    private String cityName;

    //区
    @ExcelIgnore
    private String districtName;
    private String[] createTimes;
    private String startTime;
    private String endTime;
    private String picType;
    private String retailName;
}
